import axios from '@/libs/api.request'
// const api = 'http://10.101.3.66:8899'
// const api = 'http://10.100.10.13:8899'
// 查询分组及标签列表
export const groupList = (data) => {
  return axios.request({
    url: '/merchant/shop/tag/list',
    method: 'post',
    data: data
  })
}
// 创建分组及标签
export const createTag = (data) => {
  return axios.request({
    url: '/merchant/shop/tag/create',
    method: 'post',
    data: data
  })
}
// 编辑分组及标签
export const editTag = (data) => {
  return axios.request({
    url: '/merchant/shop/tag/update',
    method: 'post',
    data: data
  })
}
// 删除分组及标签
export const delTag = (data) => {
  return axios.request({
    url: '/merchant/shop/tag/delete',
    method: 'post',
    data: data
  })
}
// 导出标签
export const exportTag = (data) => {
  return axios.request({
    url: '/merchant/shop/tag/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 标签下拉
export const tagTree = (data) => {
  return axios.request({
    url: '/merchant/shop/tag/dropdown/list',
    method: 'post',
    data: data
  })
}
// 品牌配置
export const brandList = (data) => {
  return axios.request({
    url: '/merchant/brand/list',
    method: 'post',
    data: data
  })
}
// 品牌配置删除
export const delBrand = (data) => {
  return axios.request({
    url: '/merchant/brand/delete',
    method: 'post',
    data: data
  })
}
// 品牌配置新增
export const addBrand = (data) => {
  return axios.request({
    url: '/merchant/brand/create',
    method: 'post',
    data: data
  })
}
// 品牌配置编辑
export const editBrand = (data) => {
  return axios.request({
    url: '/merchant/brand/update',
    method: 'post',
    data: data
  })
}
